/*图标引用*/
@font-face {
    font-family: 'iconfont';
    src: url('./iconfont.ttf') format('truetype');
}

:root {
    /*声明字体*/
    --iconfont: {
        font-family: "iconfont";
        font-size: 16px;
        font-style: normal;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    };
}
.iconfont {
    @apply --iconfont;
}


.edit-box{

    &{
        border: 1px solid #333;

        position: absolute;
        top:0;
        width: 100%;
    }

    .tool-bar {
        padding: 4px 0;
        border-bottom: 1px solid #333;
        overflow: hidden;
        background-color: #f8f8f8;
        cursor: default;
        a {
            font-size:16px;
            padding:2px 6px;
            display: inline-block;
            text-decoration:none;
            border:1px solid #f8f8f8;
        }

        a:hover {
            background: #eeeeee;
            cursor:pointer;
            border:1px solid #999;
        }

        .bar{
            &{
                position: relative;
                float: left;
                margin-left: 5px;
            }
            /*&:after{
                content: "";
                position: absolute;
                height: 18px;
                width: 0;
                border-right: 1px solid #bcbcbc;
                margin-top: 4px;
                top: 0;
                right: -3px;
            }*/
        }

        .cf{
            clear: both;
        }

        /*小标题*/
        .t1 {
            font-weight: bold;
            color: rgb(0, 112, 192);
            padding-right: 2px;
        }
        /*重点醒目-红色*/
        .em-red {
            /*font-weight: bold;*/
            color: #e00;
        }

        .undo{


            &{

            }
            &::after{
                @apply --iconfont;
                content:'\e641';
            }
        }
        .redo{
            &{

            }
            &::after{
                @apply --iconfont;
                content:'\e602';
            }
        }

        .hyperlink{
            &::after{
                @apply --iconfont;
                content:'\e60a';
            }
        }
        .removeformat{
            &::after{
                @apply --iconfont;
                content:'\e600';
            }
        }

        .disabled{
            opacity: .3;
            &:hover{
                border:1px solid #f8f8f8;
                background-color: rgba(0, 0, 0, 0);
                cursor: default;
            }
        }

    }

    .edit-cont{
        height: 500px;
        overflow: auto;
        outline: none;
   /*     position: absolute;
        top:50px;
        bottom: 0;
        width: 100%;*/

    }
}

/*笔记内容*/
.note {

    &{
        font: 16px/1.4 Consolas, Microsoft Yahei, \5FAE\8F6F\96C5\9ED1;
        padding:0 10px;
    }

    .content {
        padding:0 2px;
        outline: 0;
    }

    a {
        color: #0076CB;
        text-decoration: underline;
    }

    h1 {
        font-size: 28px;
        font-weight: bold;
        padding: 8px 4px 4px;
        outline: 0;
        border-bottom: 2px solid #C5C5C5;
        margin: 0 4px 16px;
        color: #006cd6;
    }
    h2, h3, h4, h5, h6 {
        font-size: 16px;
        font-weight: bold;
        background: #edf6ff;
        padding: 6px 4px;
        margin: 20px 4px 8px 0;
        /* 		border-bottom: 2px solid #C5C5C5; */
    }

    h2 {
        background: #fff;
        font-size: 24px;
        border-bottom: 1px solid #a0d0ff;
    }

    h3 {
        font-size: 20px;
    }
    h4 {
    }
    h5 {

    }
    h6 {

    }

    /*小标题*/
    .t1 {
        font-weight: bold;
        color: rgb(0, 112, 192);
        padding-right: 2px;
    }
    /*重点醒目-红色*/
    .em-red {
        /*font-weight: bold;*/
        color: #e00;
    }

    .code-line {
        background-color: #f5f5f5;
        padding: 0 4px;
        margin: 0 2px;
        color: #000;
        border: 1px solid #e6e6e6;

    }

    .code-box {
        background-color: #f5f5f5;
        margin: 2px 20px 2px 0;
        padding: 4px 10px;
        overflow: auto;
        pre {
            margin: 0;
            font-family: Consolas, Microsoft Yahei, \5FAE\8F6F\96C5\9ED1;
        }
        code {

        }

        .comment{
            color:#090;
        }
    }

}

/**
 * 代码高亮 http://prismjs.com/download.html?themes=prism&languages=markup+css
 * prism.js default theme for JavaScript, CSS and HTML
 * Based on dabblet (http://dabblet.com)
 * @author Lea Verou
 */

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: slategray;
}

.token.punctuation {
    color: #999;
}

.namespace {
    opacity: .7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #905;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #690;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #a67f59;
    background: hsla(0, 0%, 100%, .5);
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #07a;
}

.token.function {
    color: #DD4A68;
}

.token.regex,
.token.important,
.token.variable {
    color: #e90;
}

.token.important,
.token.bold {
    font-weight: bold;
}
.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}





